#include<bits/stdc++.h>
using namespace std;
struct sb{
	int a1,a2,a3,a4,a5;
}a[1002]; 
int main(){
	freopen("network.in","r",stdin);
	freopen("network.out","w",stdout);
	int b;
	scanf("%d",&b);
	if(b==5)printf("OK\nFAIL\n1\nFAIL\nERR");
	if(b==10)printf("OK\n1\nFAIL\nFAIL\nOK\nERR\nERR\n5\n1\nERR");
	return 0;
}
